#!/usr/bin/bash
rm -rf build dist xbase_util.egg-info
python setup.py sdist build
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="pypi-AgEIcHlwaS5vcmcCJGEzZjQ1OTQ4LTNhOTItNDU1MC1iZmQzLTRkMjAzZGM5MDk5ZgACKlszLCI4OGI0ZjEzMy0yNDEzLTRkNWQtYWRhNC0yZWEyYzAyYjRiZjgiXQAABiC0Qkiewwi468G1LwfDtvuSFQy2cTGgGme_OQHYyNhkJQ"
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
unset TWINE_USERNAME
unset TWINE_PASSWORD
rm -rf build dist xbase_util.egg-info